from TurtleWorld import *
from math import *
 
world=TurtleWorld()
scout=Turtle()
 
#----------------------------TRIANGLES----------------------------#

def equilateral_tri(t, size=100, rotate=120):
    t.fd(size)
    t.rt(rotate)
    t.fd(size)
    t.rt(rotate)
    t.fd(size)
    t.rt(rotate)
    
#--------------------------QUADRILATERALS-------------------------#

def para(t, width=100, height=100, angle=120, rotate=60):
    count = 1 
    while count<=4:
        t.fd(height)
        t.rt(angle)
        t.fd(width)
        t.rt(rotate)
        count += 1 

def rhom(t, size=100, angle=120, rotate=0):
    count = 1 
    while count<=4:
        t.rt(angle)
        t.fd(size)
        t.rt(angle/2)
        count += 1
    
    
def hex(t, width=100, height=45, rotate=0):
    count = 1
    while count<=8:
        t.fd(width)
        t.rt(height)
        count += 1
     
     
     
def ret(t, width=90, height=50):
    count = 1
    while count<=2:
        t.fd(width)
        t.rt(90)
        t.fd(height)
        t.rt(90)
        count += 1
    
    
    


def square(t, size=100, rotate=0):
    count = 1
    while count<=4:
        t.fd(size)
        t.rt()
        count += 1
   
    
 
#------------------------------MOVEMENT---------------------------#

def line(t, x=100, y=100):
    print "Line to a point X:", x, "over and Y:", y, "up"
  
def move(t, x=100, y=100):
    print "Move without marking to a point X:", x, "over and Y:", y, "up"
    
#------------------------------OTHER SHAPES------------------------#
"""
Build any other shape functions you want.
Some Ideas:
    Right Triangles (sss, sas, etc)
    Arbitrary Triangles
    Circle
    Arcs
    Go Wild!
    
Bonus for working or challenging functions...no penalty for trying something
"""

#------------------------------TEST-------------------------------#
rhom(scout, size=100, angle=120, rotate=0)
wait_for_user()